<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page contentType="text/html;charset=UTF-8"%>
<%@taglib uri="/struts-tags" prefix="s"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>更新零部件信息</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<link rel="stylesheet" type="text/css" href="/Machine/css/comupdate.css">

		<script type="text/javascript" src="/Machine/js/jquery-1.7.2.js">
		</script>


	</head>

	<body>
	
	<div class="compon_div">
	
	<form id="dform" target="send"
			action="/Machine/user/updatedComAction" method="post"
			enctype="multipart/form-data">

			<table class="tb" cellspacing="1" cellpadding="6">
			
				<tr>
					<td class="tl">
						<span class="f_red">*</span> 零部件标题
					</td>
					<td class="tr f_gray">
					<input type="hidden" name="component.id" value="${componentpart.id}"/>
					<input type="hidden" name="component.providername" value="${componentpart.providername}"/>
					<input type="hidden" name="component.providerid" value="${componentpart.providerid}"/>
					<input type="hidden" name="component.path" value="${componentpart.path}"/>
						<input id="name" type="text" value="${componentpart.name}" size="50"
							name="component.name">
						（2-30个字）
						<span id="dtitle" class="f_red"></span>
					</td>
				</tr>

<!--  
				<tr>
					<td class="tl">
						<span class="f_red">*</span> 零部件编号
					</td>
					<td class="tr">
						<input type="text" value="${componentpart.number}" size="30" name="component.number">
					</td>
				</tr>
				<tr>
					<td class="tl">
						<span class="f_red">*</span> 零部件规格
					</td>
					<td class="tr">
						<input type="text" value="${componentpart.specification}" size="30"
							name="component.specification">
					</td>
				</tr>
				<tr>
					<td class="tl">
						<span class="f_red">*</span> 材质或其他
					</td>
					<td class="tr">
						<input type="text" value="${componentpart.materialquality}" size="30"
							name="component.materialquality">
					</td>
				</tr>
				<tr>
					<td class="tl">
						<span class="f_red">*</span> 零部件重量
					</td>
					<td class="tr">
						<input type="text" value="${componentpart.weight}" size="30" name="component.weight">
					</td>
				</tr>
				<tr>
					<td class="tl">
						<span class="f_red">*</span> 零部件价格
					</td>
					<td class="tr">
						<input type="text" value="${componentpart.price}" size="30" name="component.price">
					</td>
				</tr>
				<tr>
					<td class="tl">
						<span class="f_red">*</span> 零部件规范
					</td>
					<td class="tr">
						<input type="text" value="${componentpart.standard}" size="30" name="component.standard">
					</td>
				</tr>
				<tr>
					<td class="tl">
						<span class="f_red">*</span> 质量等级
					</td>
					<td class="tr">
						<input type="text" value="${componentpart.qualityclass}" size="30"
							name="component.qualityclass">
					</td>
				</tr>
				-->
				<tr>
					<td class="tl">
						<span class="f_red">*</span> 零部件价格
					</td>
					<td class="tr">
						<input type="text" value="${componentpart.price}" size="30" name="component.price">
					</td>
				</tr>
				<tr>
					<td class="tl">
						<span class="f_red">*</span> 库存数量
					</td>
					<td class="tr">
						<input type="text" value="${componentpart.stockamount}" size="30" name="component.stockamount">
					</td>
				</tr>
				<tr>
					<td class="tl">
						其他属性
					</td>
					<td class="tr f_gray">
						<textarea id="content" class="dsn" name="component.other" 
							style="width: 330px; height: 150px;">${componentpart.other}</textarea>
					</td>

				</tr>
				<tr>
					<td class="tl">
						已经添加的产品图片
					</td>
					<td class="tr f_gray">
					<input type="hidden" name="component.engineeringdrawing" value="${componentpart.engineeringdrawing}"/>
					<input type="hidden" name="component.dmodel" value="${componentpart.dmodel}"/>
						<img alt="" src="${componentpart.dmodel}">
					</td>

				</tr>
				<!-- 
				<tr>
					<td class="tl">
						重新添加产品图片
					</td>
					<td class="tr f_gray">
						<input type="file" value="" name="file">(文件大小不能超过10M)

					</td>

				</tr>
				 -->

				<tr>
					<td class="tl">
						&nbsp;
					</td>
					<td class="tr" height="50">
						<input class="btn" type="submit" value=" 修 改 " name="submit">
						<input class="btn" type="button" onclick="history.back(-1);"
							value=" 返 回 ">
					</td>
				</tr>

			</table>

		</form>
	
	</div>

	</body>
</html>
